home *** CD-ROM | disk | FTP | other *** search
- {---------------------------------------------------------------------
- #
- # Apple Macintosh Developer Technical Support
- #
- # MultiFinder-Aware Simple TextEdit Sample Application
- #
- # OOPTESample
- #
- # UTESample.p - Pascal Source
- #
- # Copyright © 1988, 1989 Apple Computer, Inc.
- # All rights reserved.
- #
- # Versions:
- # 1.00 04/89
- # 1.10 02/90
- # 1.11 10/92
- #
- # Components:
- # BuildOOPTESample February 1, 1990
- # MTESample.p February 1, 1990
- # OOPTESample.make February 1, 1990
- # TECommon.h February 1, 1990
- # TESampleGlue.a February 1, 1990
- # TESample.r February 1, 1990
- # TMLRules.make February 1, 1990
- # UApplication.p February 1, 1990
- # UApplication.inc1.p February 1, 1990
- # UDocument.p February 1, 1990
- # UDocument.inc1.p February 1, 1990
- # UTEDocument.p February 1, 1990
- # UTEDocument.inc1.p February 1, 1990
- # UTESample.p February 1, 1990
- # UTESample.inc1.p February 1, 1990
- #
- ---------------------------------------------------------------------}
-
- UNIT UTESample;
-
- INTERFACE
-
- USES
- Types, QuickDraw, Events, OSUtils, ToolUtils, Controls, Windows,
- TextEdit, Dialogs, SegLoad, Fonts, Traps, Menus, Devices, Memory, Scrap,
- ObjIntf, UDocument, UApplication, UTEDocument;
-
- TYPE
- TTESample = OBJECT(TApplication)
-
- { Initialize our application and instance variables }
- PROCEDURE TTESample.ITESample;
-
- { Routines from TApplication we are overriding }
- PROCEDURE TTESample.DoIdle; OVERRIDE;
- PROCEDURE TTESample.AdjustMenus; OVERRIDE;
- PROCEDURE TTESample.AdjustCursor; OVERRIDE;
- PROCEDURE TTESample.DoMenuCommand(menuID,menuItem: integer); OVERRIDE;
- FUNCTION TTESample.HeapNeeded: Longint; OVERRIDE;
- FUNCTION TTESample.SleepVal: LongInt; OVERRIDE;
-
- { Routines for our own devious purposes }
- PROCEDURE TTESample.DoNew;
- PROCEDURE TTESample.Terminate;
- END;
-
- VAR
- gTheApplication: TTESample;
-
- IMPLEMENTATION
-
- {$I UTESample.inc1.p}
-
- END.
-